package com.taotao.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by liujunchen on 2016/11/22.
 * 通用的页面跳转逻辑
 */
@Controller
@RequestMapping("page")
public class PageController {
    @RequestMapping(value = "{pageName}",method = RequestMethod.GET )
    public String  toPage(@PathVariable("pageName")String  pageName ){
        return   pageName  ;
    }

}
